home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 1
/
SPACE - Library 1 - Volume 1.iso
/
program
/
363
/
tprolog1
/
tictac.toy
< prev
next >
Wrap
Text File
|
1990-02-03
|
5KB
|
204 lines
'tictactoe' :
'grf_mode' .
'grf_mse_show'(0) .
'tag'('tictactoe'('human')) .
'grf_mse_hide' .
'txt_mode' .
[]
'tictactoe'('human') :
'screen' .
'play'('human', 'u' . 'u' . 'u' . 'u' . 'u' . 'u' . 'u' . 'u' . 'u' . '[]') .
'tictactoe'('computer') .
[]
'tictactoe'('computer') :
'screen' .
'play'('computer', 'u' . 'u' . 'u' . 'u' . 'u' . 'u' . 'u' . 'u' . 'u' . '[]') .
'tictactoe'('human') .
[]
'play'(:0, :1) :
'wins'('o', :1) .
'delay'(500) .
[]
'play'(:0, :1) :
'wins'('x', :1) .
'delay'(500) .
[]
'play'(:0, :1) :
'not'('member'('u', :1)) .
'delay'(500) .
[]
'play'('human', :0) :
'repeat' .
'get_move'(:1) .
'legal'(:1, :0) .
'!' .
'move'('o', 0, :1, :0, :2) .
'play'('computer', :2) .
[]
'play'('computer', :0) :
'think'(:0, :1) .
'move'('x', 0, :1, :0, :2) .
'play'('human', :2) .
[]
'move'(:0, :1, :1, 'u' . :2, :0 . :2) :
'show'(:1, :0) .
'!' .
[]
'move'(:0, :1, :2, :3 . :4, :3 . :5) :
'sum'(:1, 1, :6) .
'move'(:0, :6, :2, :4, :5) .
[]
'legal'(0, 'u' . :0) :
'!' .
[]
'legal'(:0, :1 . :2) :
'sum'(:3, 1, :0) .
'legal'(:3, :2) .
[]
'get_move'(:0) :
'repeat' .
'request'(:1, :2) .
'stop_button'(:1, :2) .
'less'(170, :1) .
'less'(:1, 470) .
'less'(50, :2) .
'less'(:2, 350) .
'is'(:0, '+'('*'(3, '/'('-'(:2, 50), 100)), '/'('-'(:1, 170), 100))) .
'!' .
[]
'request'(:0, :1) :
'repeat' .
'grf_mse_state'(0, :2, :3) .
'!' .
'repeat' .
'grf_mse_state'(1, :0, :1) .
'!' .
[]
'stop_button'(:0, :1) :
'less'(30, :0) .
'less'(:0, 70) .
'less'(30, :1) .
'less'(:1, 70) .
'tagexit'('tictactoe'(:2)) .
[]
'stop_button'(:0, :1) :
[]
'think'(:0, :1) :
'insert'('x', :0, :1, :2) .
'wins'('x', :2) .
[]
'think'(:0, :1) :
'insert'('o', :0, :1, :2) .
'wins'('o', :2) .
[]
'think'(:0 . :1 . :2 . :3 . 'u' . :4 . :5 . :6 . :7 . '[]', 4) :
[]
'think'('u' . :0 . :1 . :2 . :3 . :4 . :5 . :6 . :7 . '[]', 0) :
[]
'think'(:0 . :1 . 'u' . :2 . :3 . :4 . :5 . :6 . :7 . '[]', 2) :
[]
'think'(:0 . :1 . :2 . :3 . :4 . :5 . 'u' . :6 . :7 . '[]', 6) :
[]
'think'(:0 . :1 . :2 . :3 . :4 . :5 . :6 . :7 . 'u' . '[]', 8) :
[]
'think'(:0 . 'u' . :1 . :2 . :3 . :4 . :5 . :6 . :7 . '[]', 1) :
[]
'think'(:0 . :1 . :2 . 'u' . :3 . :4 . :5 . :6 . :7 . '[]', 3) :
[]
'think'(:0 . :1 . :2 . :3 . :4 . 'u' . :5 . :6 . :7 . '[]', 5) :
[]
'think'(:0 . :1 . :2 . :3 . :4 . :5 . :6 . 'u' . :7 . '[]', 7) :
[]
'insert'(:0, 'u' . :1, 0, :0 . :1) :
[]
'insert'(:0, :1 . :2, :3, :1 . :4) :
'insert'(:0, :2, :5, :4) .
'sum'(:5, 1, :3) .
[]
'wins'(:0, :0 . :0 . :0 . :1 . :2 . :3 . :4 . :5 . :6 . '[]') :
[]
'wins'(:0, :1 . :2 . :3 . :0 . :0 . :0 . :4 . :5 . :6 . '[]') :
[]
'wins'(:0, :1 . :2 . :3 . :4 . :5 . :6 . :0 . :0 . :0 . '[]') :
[]
'wins'(:0, :0 . :1 . :2 . :0 . :3 . :4 . :0 . :5 . :6 . '[]') :
[]
'wins'(:0, :1 . :0 . :2 . :3 . :0 . :4 . :5 . :0 . :6 . '[]') :
[]
'wins'(:0, :1 . :2 . :0 . :3 . :4 . :0 . :5 . :6 . :0 . '[]') :
[]
'wins'(:0, :0 . :1 . :2 . :3 . :0 . :4 . :5 . :6 . :0 . '[]') :
[]
'wins'(:0, :1 . :2 . :0 . :3 . :0 . :4 . :0 . :5 . :6 . '[]') :
[]
'delay'(0) :
[]
'delay'(:0) :
'sum'(:1, 1, :0) .
'bell' .
'delay'(:1) .
[]
'screen' :
'grf_mse_hide' .
'grf_f_type'(2) .
'grf_f_style'(4) .
'grf_box'(0, 0, 639, 399) .
'grf_f_type'(0) .
'grf_rfbox'(150, 30, 489, 369) .
'clr'(50) .
'clr'(150) .
'clr'(250) .
'grf_f_type'(2) .
'grf_f_style'(1) .
'grf_rfbox'(30, 30, 70, 70) .
'grf_text'(34, 42, 'STOP') .
'grf_mse_show'(0) .
[]
'clr'(:0) :
'square'(170, :0) .
'square'(270, :0) .
'square'(370, :0) .
[]
'show'(:0, :1) :
'prod'(3, :2, :3, :0) .
'is'(:4, '+'('*'(100, :3), 170)) .
'is'(:5, '+'('*'(100, :2), 50)) .
'grf_mse_hide' .
'show'(:4, :5, :1) .
'grf_mse_show'(0) .
[]
'show'(:0, :1, 'o') :
'!' .
'circle'(:0, :1) .
[]
'show'(:0, :1, 'x') :
'cross'(:0, :1) .
[]
'square'(:0, :1) :
'sum'(:0, 99, :2) .
'sum'(:1, 99, :3) .
'grf_f_type'(0) .
'grf_bar'(:0, :1, :2, :3) .
[]
'circle'(:0, :1) :
'sum'(:0, 50, :2) .
'sum'(:1, 50, :3) .
'grf_l_width'(15) .
'grf_arc'(:2, :3, 30, 0, 3600) .
[]
'cross'(:0, :1) :
'sum'(:0, 20, :2) .
'sum'(:1, 20, :3) .
'sum'(:0, 80, :4) .
'sum'(:1, 80, :5) .
'grf_l_width'(15) .
'grf_l_ends'(2, 2) .
'grf_pline'(:2 . :3 . :4 . :5 . '[]') .
'grf_pline'(:2 . :5 . :4 . :3 . '[]') .
[]
:
'seen' .
[]#